﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ShowResult : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        GameObject.Find("Canvas/Panel/SongName").GetComponent<Text>().text = GlobalSettings.Instance.songName.Replace(".txt","");
        GameObject.Find("Canvas/Panel/ScoreLevel").GetComponent<Text>().text = GlobalSettings.Instance.scoreLevel;
        GameObject.Find("Canvas/Panel/Score").GetComponent<Text>().text = ((int)GlobalSettings.Instance.score).ToString();
        GameObject.Find("Canvas/Panel/MaxSum").GetComponent<Text>().text = GlobalSettings.Instance.noteSum.ToString();
        GameObject.Find("Canvas/Panel/PureSum").GetComponent<Text>().text = GlobalSettings.Instance.pureNum.ToString();
        GameObject.Find("Canvas/Panel/FarSum").GetComponent<Text>().text = GlobalSettings.Instance.farNum.ToString();
        GameObject.Find("Canvas/Panel/LostSum").GetComponent<Text>().text = GlobalSettings.Instance.lostNum.ToString();
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
